package swagger2.web;

import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;
import swagger2.domain.PublicAPI;
import swagger2.domain.RestApi;

@RestController
@Api
@PublicAPI
@RestApi
public class HelloController
{

	@ApiIgnore
	@RequestMapping(value = "/hello", method = RequestMethod.GET)
	public String hello()
	{
		return "Hello World";
	}

	@RequestMapping(value = "/nihao", method = RequestMethod.GET)
	public String nihao()
	{
		return "Nihao World";
	}

}